/*
* 输出目录下所有文件的文件名
* std C++17
*/
#include <iostream>
#include <string>
#include <filesystem>
namespace fs = std::filesystem;

int main()
{
	fs::path p = "/home/edwin";
	for (const fs::directory_entry& entry : fs::directory_iterator(p))
	{
		std::cout << entry.path().filename().string() << std::endl;
	}
	return 0;
}
